<?php

class module extends Model{
	
	public $table = 'modules';
	
	public static function isActive($module)
	{
		$query = new Query("SELECT * FROM `modules`	WHERE `name` = ? AND `active` = 1 ORDER BY `id`", $module);
		
		if($query->num_rows() > 0)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}

?>